//
//  DWPerson.m
//  OCMacDemo
//
//  Created by 杨冬武 on 2021/2/9.
//

#import "DWPerson.h"

@interface DWPerson () {
    DWDog *_dog;
}
@end

@implementation DWPerson
@synthesize dog = _dog;

- (void)setDog:(DWDog *)dog {
    if (_dog != dog) {
        [_dog release];
        _dog = [dog retain];
    }
}

- (void)dealloc {
//    [_dog release];
//    _dog = nil;
    self.dog = nil;
    [super dealloc];
}

- (void)test {
    NSLog(@"test, self");
}

//- (void)setAge:(int)age {
//    _age = age;
//    NSLog(@"%s", __FUNCTION__);
//}

//- (void)_setAge:(int)age {
//    NSLog(@"%s", __FUNCTION__);
//}

//+ (BOOL)accessInstanceVariablesDirectly {
//    return YES;
//}

@end
